home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / gnustuff / minix / update~4.z / update~4 / lib_stdio_notused_scanf.c < prev    next >
Encoding:
C/C++ Source or Header  |  1989-09-06  |  455 b   |  31 lines

  1. /*                s c a n f
  2.  *
  3.  * Formatted input from stdin. The function returns the number items
  4.  * scanned from stdin and EOF on failure.
  5.  *
  6.  * Patchlevel 1.0
  7.  *
  8.  * Edit History:
  9.  */
  10.  
  11. #include "stdiolib.h"
  12.  
  13. /*LINTLIBRARY*/
  14. /*VARARGS1*/
  15. /*ARGSUSED*/
  16.  
  17. int scanf(fmt, va_alist)
  18.  
  19. char *fmt;                /* format */
  20. va_dcl
  21.  
  22. {
  23.   va_list arg;                /* argument vector */
  24.   int v;                /* return value */
  25.  
  26.   va_start(arg);
  27.   v = vfscanf(stdin, fmt, arg);
  28.   va_end(arg);
  29.   return v;
  30. }
  31.